package trlygjj.tanruiliyigenjinjin.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class CurriculumTableQueryObject extends QueryObject{



    private String headTeacher;
    private String gradeName;
    private String classRoom;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    public String getHeadTeacher(){
        return StringUtils.isEmpty(headTeacher) ? null : headTeacher;
    }
   public String getGradeName(){
        return StringUtils.isEmpty(gradeName) ? null : gradeName;
    }
   public String getClassRoom(){
        return StringUtils.isEmpty(classRoom) ? null : classRoom;
    }

}
